﻿<UserControl x:Class="PJ.Presentation.Partner.CustomerSearchView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:model="clr-namespace:PJ.Presentation.Partner;assembly=PJ.Presentation.PartnerModel"            
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Style x:Key="ContentText" TargetType="TextBox">
            <Setter Property="FontFamily" Value="Franklin Gothic"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="Foreground" Value="#FF77B6EB"/>
            <Setter Property="Margin" Value="5,2,5,2"/>
        </Style>
        <Style x:Key="TitleBorder" TargetType="Border">
            <Setter Property="CornerRadius" Value="10"/>
            <Setter Property="Background" Value="#FF77B6EB"/>
            <Setter Property="Margin" Value="5,2,5,2"/>
        </Style>
    </UserControl.Resources>
    <!--<UserControl.DataContext>
        <model:CustomerModel Address="3, rue des Ecoles 67870 Bischoffsheim France" GlobalID="2822-05210-452" ID="PIQJER" Name="Piquot Jérôme" Phone="+33 3 88 48 71 31"/>
    </UserControl.DataContext>-->
    <StackPanel >
        <Border>
            <TextBox Style="{StaticResource ContentText}" Text="{Binding Path=SearchText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" KeyUp="TextBox_KeyUp" HorizontalAlignment="Stretch" />
        </Border>
        <Border Style="{StaticResource TitleBorder}">
            <Button Command="{Binding Path=SearchCommand, ValidatesOnExceptions =true}">
                <TextBlock Text="Rechercher les clients"/>
            </Button> 
        </Border>
    </StackPanel>
</UserControl>
